//
//  MainTableViewCell.m
//  InviteJob
//
//  Created by chirui on 2017/10/20.
//  Copyright © 2017年 Shui. All rights reserved.
//

#import "MainTableViewCell.h"

@implementation MainTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
    }
    return self;
    
}

+(NSString *)reuseIdentifier{
    
    NSString * reuseIdentifier = @"MainTableViewCell";
    
    return reuseIdentifier;
    
}

-(void)setCompanyImage:(UIImageView *)companyImage {

    _companyImage = companyImage;
    companyImage.layer.cornerRadius = 35/2.f;
    companyImage.layer.masksToBounds = YES;

}

-(void)setCompanyName:(UILabel *)companyName{

    _companyName = companyName;
    companyName.numberOfLines = 1;
    [companyName sizeToFit];
}
-(void)setTagLabel:(UILabel *)tagLabel{
    _tagLabel = tagLabel;
    tagLabel.layer.cornerRadius = 3.f;
    tagLabel.layer.masksToBounds = YES;
    tagLabel.frame = CGRectMake(CGRectGetMaxX(_companyName.frame)+5, CGRectGetMinY(_companyName.frame)+2, 30, 15);
    tagLabel.numberOfLines=1;
    [tagLabel sizeToFit];

}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
